DevForce Help Reference
CreateServiceHost(String,Uri[]) Method


The initialization data that is passed to the System.ServiceModel.ServiceHostBase instance being constructed by the factory.
An System.Array of type System.Uri that contains the base addresses of the host.
When overridden in a derived class, creates a System.ServiceModel.ServiceHostBase with a specific base address using custom initiation data.
Syntax
'Declaration
 
Public Overloads Overrides Function CreateServiceHost( _
   ByVal constructorString As String, _
   ByVal baseAddresses() As Uri _
) As ServiceHostBase
'Usage
 
Dim instance As EntityServerHostFactory
Dim constructorString As String
Dim baseAddresses() As Uri
Dim value As ServiceHostBase
 
value = instance.CreateServiceHost(constructorString, baseAddresses)
public override ServiceHostBase CreateServiceHost( 
   string constructorString,
   Uri[] baseAddresses
)

Parameters

constructorString
The initialization data that is passed to the System.ServiceModel.ServiceHostBase instance being constructed by the factory.
baseAddresses
An System.Array of type System.Uri that contains the base addresses of the host.

Return Value

The System.ServiceModel.ServiceHostBase object with the specified base addresses and initialized with the custom initiation data.
Remarks
The constructorString should contain the type name and data source extension, separated by a comma: for example, "IdeaBlade.EntityModel.Server.EntityServer, A". You'll specify this on the ServiceHost directive in the *.svc file for the specific EntityServer: Service="IdeaBlade.EntityModel.Server.EntityServer, A".
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityServerHostFactory Class
EntityServerHostFactory Members
Overload List

Send Feedback